package com.Threecharacters.inherit_.improve;

import com.Threecharacters.inherit_.ExtendsCase.Graduate;
import com.Threecharacters.inherit_.ExtendsCase.Pupil;

public class Extends01 {
    public static void main(String[] args) {

        Graduate graduate = new Graduate();
        graduate.setName("蔡徐坤");
        graduate.setAge(20);
        graduate.setGrade(90);
        graduate.testing();
        System.out.println(graduate.Info());

        Pupil pupil = new Pupil();
        pupil.setName("小黄");
        pupil.setAge(9);
        pupil.setGrade(99);
        pupil.testing();
        System.out.println(pupil.Info());

    }
}
